#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QActionGroup>
#include "formtest.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
    void colorWidgetForground_ColorChange(const QColor& color);
    void colorWidgetBackground_ColorChange(const QColor& color);
    void police_currentFontChanged(const QFont& font);
    void gras_triggered(bool);
    void italique_triggered(bool);
    void underlinetriggered(bool);
    void up_triggered(bool);
    void down_triggered(bool);
    void weight_change(const QString& value);
    void saveConfig();
    void openConfig();
    void openText();
    void saveText();
    void undo();
    void redo();
    void copier();
    void couper();
    void coller();
    void btnForground();
    void btnBackground();
    void textChanged();


private slots:
    void on_actionA_propos_de_triggered();

    void on_actionAide_triggered();

private:
    Ui::MainWindow *ui;
    QActionGroup* _group;
    FormTest colorPicker;
    FormTest colorPicker_2;
};

#endif // MAINWINDOW_H
